package creational.facotrymethod;

public class HondaFactory implements ICarFactory {

    @Override
    public ICar createCar(int type) {
        if (type == 1) {
            return new HondaCar1();
        } else if (type == 2) {
            return new HondaCar2();
        } else {
            return null;
        }
    }

}
